package common

const (
	ServType_Auth  int32 = 1
	ServType_Logic int32 = 2
	ServType_Match int32 = 3
	ServType_Pvp   int32 = 4
)

const (
	ServType_Name_Auth  = "auth"
	ServType_Name_Logic = "logic"
	ServType_Name_Match = "match"
	ServType_Name_Pvp   = "pvp"
)

var SRV_TYPE_MAP = map[string]int32{
	"auth":  ServType_Auth,
	"logic": ServType_Logic,
	"match": ServType_Match,
	"pvp":   ServType_Pvp,
}

var SERVER_TYPE_MAP = map[int32]string{
	ServType_Auth:  "auth",
	ServType_Logic: "logic",
	ServType_Match: "match",
	ServType_Pvp:   "pvp",
}

var SRV_RPC_MAP = map[int32][]int32{
	ServType_Auth:  {ServType_Logic},
	ServType_Logic: {ServType_Match, ServType_Pvp},
	ServType_Match: {ServType_Logic, ServType_Pvp},
	ServType_Pvp:   {},
}
